package hb.software.score.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.score.entity.Score;
import hb.software.service.score.ScoreManager;
import edu.zut.hb.software.base.web.GenericController;

@Controller
@RequestMapping("/score")
public class ScoreController extends GenericController<Score, Long, ScoreManager> {
    ScoreManager scoreManager;

    @RequestMapping(method = RequestMethod.GET, value = "/index.html")
    public String index() {
        String result = "/score/index";
        return result;
    }

    @Autowired
    public void setStudentManager(ScoreManager studentManager) {
        this.scoreManager = studentManager;
        this.manager = this.scoreManager;
    }

}
